/******************************************************************************
	Module: ZWIN-CAPI.TXT
        All commands for PPLZ in Dynamic Link Library for Windows
	Notices: Copyright (c) 2001-2006 ARGOIMPREX
	Version: 3.04ZW 2006/02/15
******************************************************************************/
	ؿ
===============================================================================
	Z_Bar2d_Maxi()		=> LX@ Maxi Code 2D BarcodeC
	Z_Bar2d_PDF417()		=> LX@ PDF417 
	Z_ClosePrn()            =>  Printer u@C
	Z_CreatePrn()           => } Printer u@C
	Z_Set_FlashMemory()	=> ]w FORM xsb RAM  Flash Memory
	Z_Set_Format_New()	=> ]w FORM W
	Z_Del_Format()		=> R Form ()C
	Z_Del_Graphic()         => RxsbL RAM  Flash Memory ϧΡC
	Z_Draw_Box()            => e@ӮءC
	Z_Draw_Line()           => e@uC
	Z_Get_DLL_Version()	=> oΨqXƮwTC
	Z_Get_DLL_VersionA()	=> oΨqXƮwTC
	Z_Get_Graphic_ColorBMP()=> CLǶ BMP ɡC
	Z_Initial_Setting()     => emBzC
	Z_Load_Graphic()	=> CL@ӹϧΡC
	Z_Open_ChineseFont()	=> }ҨϥΤIx}rɮ (16*15 M 24*24)C    
	Z_Print_Form()		=> CL@ FORM ()AÿJ FORM W١Aó]we
                                   ҩMƻPCLơC
	Z_Print_Out()           => XҦƨó]weΰҩMƻPCLơC
	Z_Prn_Barcode()		=> LX@ӱXC
	Z_Prn_Text()		=> LX@rC
	Z_Prn_Text_Chinese()    => LX@rAϥΤIx}rɮ (16*15  24*24)C
	Z_Prn_Text_TrueType()   => LX@ True Type Font rC
	Z_Prn_Text_TrueType_W()	=> LX@ True Type Font rAñreΰC
	Z_Clear_Memory()	=> M Printer  RAM  Flash Memory ơC
	Z_Set_Backfeed()	=> Ҧ^C
	Z_Set_Darkness()	=> ]wPYCLסC
	Z_Set_DebugDialog()	=> ]wҡC
	Z_Set_Label()		=> ]wȱi
	Z_Set_Mode()		=> Ұ Cutter  PeelC
	Z_Set_Origin()		=> ]w}lCLm
	Z_Set_Paper()		=> ]wsȱi
	Z_Set_Prncomport	=> ]wLǦC
	Z_Set_Prncomport_PC()	=> ]w PC ǦCC
	Z_Set_Reset()		=> ^_ut]w
	Z_Set_Speed()		=> ]wCLt
	Z_Set_TPH()		=> ]wLҦ
	Z_Set_Unit()		=> ]w׶q쬰^TΤةι
	Z_Set_Gap()		=> ]w Gap 
	Z_Set_ProcessDlg()	=> }ҩi׹ܮ
	Z_Bar2d_QRCode()	=> 2D Barcode QR code CL
	Z_Set_PrintWidth()	=> ]wCLe
	Z_Print_OutQuality	=> ]wCLi
	Z_GetUSBBufferLen()	=> d USB ƪ
	Z_EnumUSB()			=> o USB 𪺸
	Z_CreateUSBPort()	=> ϥ USB iǿ

*******************************************************************************
    `Nƶ
===============================================================================
    ϥΤkG1.N WINPPLZ.DLL  WCOMMON.DLL [J \\Windows\system\  \\???\
	        椤|A~QjMC
	      2.HUdҬ Visual C++ d,L{y@wۦP

    *******************************************************************************
    Z_GetUSBBufferLen()
	Z_EnumUSB()
    ===============================================================================
	\G	o USB Printer ơC

	ykG	int Z_GetUSBBufferLen();
			int Z_EnumUSB(char *buf);

	ѼơG	char *buf;	xs USB Printer ơC


	Ǧ^ȡG	Z_GetUSBBufferLen(); Ǧ^ USB ƪ
				Z_EnumUSB()	0 -> OK.
							Reference AW-Error.txt file.

	dҡG	char *buf;
			int	nLen = Z_GetUSBBufferLen()+1;
			buf = malloc(nLen);
			memset(buf, 0, nLen);
			Z_EnumUSB(buf);

	G	oӨƬO@ժơC Z_GetUSBBufferLen() o USB ǿ𪺸
			, MAtO鵹 Z_EnumUSB() xs USB 𪺸ơCUSB 𪺸ƬOH
			("0x0d0x0a")j,|Ҩӻ, pGƬO A-200(0x0d)(0x0a)R-400ZIP 
			 USB1 O A-200, USB2 O R-400ZipC

*******************************************************************************
	Z_CreatePrn()
	Z_CreateUSBPort()
===============================================================================
	\:	} Printer u@C

	yk:	int Z_CreatePrn(int selection,LPCTSTR filename);
			int Z_CreateUSBPort(int nPort);

	Ѽ:	int	selection;	ܿXɮסC
					0 -> print to file.
					1 -> lpt1, 2 -> lpt2, 3 -> lpt3
					4 -> com1, 5 -> com2, 6 -> com3
					10 -> net
		LPCTSTR	filename;	 selection eO 0 ɸƫhX
					סAɦWNO filename eAit|A
					άO NULLC selection eO 10 ɡA
					filename X|C
			int	nPort;			 USB ǿ

	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_CreatePrn(1,NULL);  Z_CreatePrn(0,"C:\TEMP\out.prn");
		Z_CreatePrn(10,"\\allen\Label");  Z_CreateUSBPort(1);

	:	Z_CreatePrn M Z_CreateUSBPort Ʒ|}ҧAܪXζ}ҧAJ
		XɡCӳoӨƥbҦƤeC
		Z_CreatePrn M Z_CreateUSBPort PɨϥΡC

*******************************************************************************
	Z_ClosePrn()
===============================================================================
	\:	 Printer u@C

	yk:	void Z_ClosePrn(void);

	d:	Z_ClosePrn();

	:	o Z_ClosePrn Ʒ|LOΧAܪXA}Ҫ
		XɡCӳoӨƥbҦƤC

*******************************************************************************
    Z_Bar2d_Maxi()
===============================================================================
	\:	LX@ Maxi Code 2D BarcodeC

	yk: 	int Z_Bar2d_Maxi(int x,int y,int nMode,int nSymbol,int nTotal,
				int nClass, int nCountry,char cZipCode1[6],
				char cZipCode2[4],LPCTSTR data,int increase)

	Ѽ:	int		x		Xy
		int		y		Yy.1 dot = 0.125 mm
		int		nMode		Barcode mode
						2: Numeric Postal Code(US)
						3: Alphanumeric Postal Code(Non-US)
		int		nSymbol		Symbol Number: 1 ~ 8
		int		nTotal		Symbol Number `: 1 ~ 8
		int		nClass		three digit class of service
		int		nCountry	three digit country code
		char		cZipCode1[6]	nMode = 2 --> five digit zip code
						nMode = 3 --> six character zip code
		char		cZipCode2	four digit zip code externsion.
						*Only Used in nMode 2.
		LPCTSTR		data		Ʀr,̦h84Ӧr
		int		increase	Wq,w]Ȭ0

	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	int	x,y,m,n,t,increase;
		LPCTSTR	data="This MaxiCode";
			x=50;y=50;m=4;n=4;t=5,increase=0;
		Z_Bar2d_Maxi(x,y,m,n,t,data,increase);

	:	o Z_Bar2d_Maxi ƥiHCLX@ Maxi Code 2D BarcodeC

*******************************************************************************
    Z_Bar2d_PDF417()
===============================================================================
	\:	LX@ PDF417 2D BarcodeC

	yk: 	int Z_Bar2d_PDF417(int x,int y,int o,int h,int s,int c,int r,
			int t,int narrow,LPCTSTR data,int increase)

	Ѽ:	int		x		Xy
		int		y		Yy.1 dot = 0.125 mm
		int		o		CLVwA'1'O 0XA'2'O90XB
						'3'O180XA'4'O270X
		int		h		Barcode height for Individual Rows
						h * module = height of individusl rows
		int		s		~ե 08
		int		c		column count
		int		r		row count
		int		t		Truncation flagA
						'0' O normal M '1' O truncated.
		int		narrow		Ҳհ
		LPCTSTR		data		Ʀr,̦h84Ӧr
		int		increase	Wq,w]Ȭ0

	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	int	x,y,o,h,s,c,r,t,narrow,increase;
		LPCTSTR	data="PDF-417";
			x=50;y=50;o=0;h=5;s=5;c=2;r=83;t=0;increase=0;narrow=2;
		Z_Bar2d_PDF417(x,y,o,h,s,c,r,t,narrow,data,increase);

	:	o Z_Bar2d_PDF417 ƥiHCLX@ PDF417 2D BarcodeC

*******************************************************************************
	Z_Set_FlashMemory()
===============================================================================
	\:	]w FORM xsm

	yk:	int Z_Set_FlashMemory(int Status);

	Ѽ:	int	Status;		xsm
					0 -> RAM	1 -> Flash Memory
	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_FlashMemory(0);  Z_Set_FlashMemory(1);

	:	o Z_Set_FlashMemory ]w FORM xsmCbϥ FORM eA
		 Z_Set_FlashMemory()

*******************************************************************************
	Z_Set_Format_New()
===============================================================================
	\:	]w FORM () W

	yk:	void Z_Set_Format_New(LPCTSTR FormName);

	Ѽ:	LPCTSTR		FormName;	W١C

	d:	Z_Set_Format_New("demo");

	:	o Z_Set_Format_New ]w FORM () W١Cb]w,i
		Is FORM CL

*******************************************************************************
	Z_Del_Format()
===============================================================================
	\:	R FORM ()

	yk:	int Z_Del_Format(int memory, char FormName[])

	Ѽ:	int	memory;		xsm
					0 -> RAM	1 -> Flash Memory
		char	FormName[];	W١CiWL10r

	d:	Z_Del_Format(0,"demo");

	:	o Z_Del_Format iRxsL FORM ()C

*******************************************************************************
	Z_Del_Graphic()
===============================================================================
	\:	RxsbL RAM  Flash Memory ϧ

	yk:	int Z_Del_Graphic(int memory, char GraphicName[])

	Ѽ:	int	memory;		xsm
					0 -> RAM	1 -> Flash Memory
		char	GraphicName[];	ϧΦW١CiWL10r

	d:	Z_Del_Graphic(0,"girl");

	:	o Z_Del_Graphic iRxsLϧ

*******************************************************************************
	Z_Draw_Box()
===============================================================================
	\:	e@Ӯ

	yk:	int Z_Draw_Box(int x,int y,int width,int height,int thickness)

	Ѽ:	int	x;		Xy
		int	y;		Yy
		int	width;		ت 0 < width < 9999
		int	height		تe 0 < height < 9999
		int	thickness	uʲ > 0
					ƵG1 dot = 0.125 mmC

	d:	int x,y,,width,height,thickness;
		x=50;y=100;width=250;height=100;thickness=5;
		Z_Draw_Box(x,y,width,height,thickness);
	:	o Z_Draw_Box Ʒ|e@Ӯ

*******************************************************************************
	Z_Draw_Line()
===============================================================================
	\:	e@u

	yk:	int Z_Draw_Line(int x,int y,int width,int height)

	Ѽ:	int	x;		Xy
		int	y;		Yy
		int	width;		u 0 < width < 9999
		int	height		ue 0 < height < 9999
					ƵG1 dot = 0.125 mmC

	d:	int x,y,,width,height;
		x=50;y=100;width=250;height=3;
		Z_Draw_Box(x,y,width,height);
	:	o Z_Draw_Line Ʒ|e@u

*******************************************************************************
	Z_Get_DLL_Version()
	Z_Get_DLL_VersionA()
===============================================================================
	\:	oΨqXƮwTC

	yk:	char* Z_Get_DLL_Version(int nShowMessage); 
		int Z_Get_DLL_VersionA(int nShowMessage); 

	Ѽ:	int	nShowMessage;		T{C0 -> {B1 -> {C

	Ǧ^:	Ǧ^TrAѫhǦ^ NULLC
		Z_Get_DLL_VersionA() -> return version value.

	d:	Z_Get_DLL_Version(1);

	:	o Z_Get_DLL_Version ơAϥΪ̨oΨqXƮwTC

*******************************************************************************
	Z_Get_Graphic_ColorBMP()
===============================================================================
	\:	ഫ BMP ɱmܦǶAñNϧxsbL RAM 
		Flash MemoryC

	yk:	int Z_Get_Graphic_ColorBMP(int x, int y,int memory, LPCTSTR filename);

	Ѽ:	int	x;		X yСC
		int	y;		Y yСC
		int	memory;		xsm 0 -> RAM	1 -> Flash Memory
		LPCTSTR	filename;	ϧɦW١Ait|C
					榡pGXXXXXXXX.XXX  X:\XXX\XXX.BMP
	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Get_Graphic_ColorBMP(30,20,"girl.bmp");

	:	o Z_Get_Graphic_ColorBMP ƥiJC BMP ɡAæ۰ഫ
		¥զǶɰeܦLCLAഫ~ Windows's Driver for Dr.200
		or Dr.300 վAҥHϥΪ̥ݦw ARGOX DriverALw]LA
		Y default printer O Dr.200  Dr.300 A{۰ʷjM Windows A
		O_ Dr.200  Dr.300AA̧ǨϥΡC

*******************************************************************************
	Z_Initial_Setting()
===============================================================================
	\:	emBzC

	yk:	int Z_Initial_Setting(int Type,LPCTSTR Source);

	Ѽ:	int	Type;		ܿJҦAȬ 0 -> JrA
					1 -> JɮסC
		LPCTSTR	Source;		ƨӷAirɮצW١Ait|C
                                           
	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:  LPCTSTR aa = "^FO120,30\r\n\"; Z_Initial_Setting(0,aa);
			or
		Z_Initial_Setting(1,"initfile.txt");

	:	o Z_Initial_Setting ƫemBzʧ@AON@ Command eܦL
		AѦrɮ׿JAbϥγoӨƮɡAb Z_Create_Prn() L
		ƤeAi@ϥΪ̦ۭqAC

*******************************************************************************
	Z_Load_Graphic()
===============================================================================
	\:	CL@ӹϧΡC

	yk:	int Z_Load_Graphic(int x,int y,char GraName[11],int hori,int vert);

	Ѽ:	int	x;		X yСC
		int	y;		Y yСCƵG1 dot = 0.125 mmC
		char	GraName[11];	ϧɦW,(tɦW)̤j10ӦrC
		int	hori;		j. 1 <= hori <= 10 w]1
		int	vert;		j. 1 <= vert <= 10 w]1

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	int	x,y,hori,vert;
		char	GraName[11]="phone";
		x=50;y=30,hori=1,vert=1;
		Z_Load_Graphic(x,y,GraName,hori,vert);

	:	o Z_Load_Graphic Ʒ|CL@ӹϧΡAӹϧΥ
		Z_Get_Graphic JL RAM  flash memoryC

*******************************************************************************
	Z_Open_ChineseFont()
===============================================================================
	\:	}ҨϥΤIx}rɮ (16*15 M 24*24)C

	yk:	int Z_Open_ChineseFont(char* path);

	Ѽ:	char*	path;		Ix}rɮרӷ|C

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Open_ChineseFont("C:\\ET3");

	:	o Z_Open_ChineseFont ƶ}ҤIx}rɮ (16*15 M 24*24)A
		 Z_Prn_Text_Chinese ƨϥΡC

*******************************************************************************
	Z_Print_Form()
===============================================================================
	\:	CL@ FORM ()AÿJ FORM W١Aó]wƻPC
		LơC

	yk:	int Z_Print_Form(int labset,int copies,int mem,char form_out[]);

	Ѽ:	int	labset;		CLơAdG132767C
		int	copies;		ƻsơAdG132767C
		int	mem;		xsm 0 -> RAM	1 -> Flash Memory
		char   form_out[11];	W١AP󤧫eJ FORM W١A
					έxsbL FORMC

	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	int    labset,copies,mem;
		char   form_out[11]="demo";
		labset=3;copypiece=2,mem=0;
		Z_Print_form(labset,copies,mem,form_out);

	:	o Z_Print_Form Ʒ|eҦƤΪ PrinterAoӨƨϥΫe
		 Z_Set_Format_New()AæbҦƤAZ_ClosePrn() eC
		ϥΦƮɡAN Z_Print_Out()C

*******************************************************************************
	Z_Print_Out()
===============================================================================
	\:	CLҦơC

	yk:	int Z_Print_Out(int set,sint copies);

	Ѽ:	int	sets;		nCLX
		int	copies;		ƦCL

	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Print_Out(1,1);

	:	o Z_Print_Out Ʒ|eҦƨ PrinterAoӨƶbҦƤ
		AZ_ClosePrn() eC
*******************************************************************************
	Z_Prn_Barcode()
===============================================================================
	\:	LX@ӱXM[W\C

	yk:	Z_Prn_Barcode(int x,int y,int ori,int narrow,int width,
			int height,char type,int increase,LPCTSTR data,char p1,
			char p2,char p3,char p4,char p5)

	Ѽ:	int	x;		X yСC
		int	y;		Y yСC
					Ƶ:200 dpi => 1 dot = 0.125 mmC
		int	ori;		CLVwA'1'O 0XA'2'O90XB
					'3'O180XA'4'O270X
		int	narrow		NARROW bar e
		int	width		WIDE bar e
		int	height		Bar code 
		char	type;		Bar code BpUG
    
    xtypex        X            x                          x
    
    x    x                            xp1:T{X   Y:1  N:2      x
    x 1  xCode 11                     xp2:O_CLX               x
    x    x                            xp3:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x    x                            xp1:O_CLX               x
    x 2  xInterleaved 2 of 5          xp2:XƬO_CLb Barcode Wx
    x    x                            xp3:O_CLT{X                 x
    uwwqwwwwwwwwwwwwwwqwwqwwwwwwwwwwwwwwt
    x    x                            xp1:O_CLT{X                 x
    x 3  xCode 39                     xp2:O_CLX               x
    x    x                            xp3:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x 8  xEAN-8                       xp1:O_CLX               x
    x    x                            xp2:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x    x                            xp1:O_CLX               x
    x 9  xUPC-E                       xp2:XƬO_CLb Barcode Wx
    x    x                            xp3:O_CLT{X                 x
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x    x                            xp1:O_CLX               x
    x A  xCode93                      xp2:XƬO_CLb Barcode Wx
    x    x                            xp3:O_CLT{X                 x
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x    x                            xp1:O_CLX               x
    x    x                            xp2:XƬO_CLb Barcode Wx
    x C  xCode 128 Subset A,B,C       xp3:O_CLUCCT{X              x
    x    xCode 128 UCC                xp4:Code 128 subset A,B,C        x
    x    x                            x   Code 128 UCC                   x
    x    x                            x   N:Code 128   U:Code 128 UCC    x
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x E  xEAN-13                      xp1:O_CLX               x
    x    x                            xp2:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x I  xIndustrial 2 of 5           xp1:O_CLX               x
    x    x                            xp2:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x J  xStandard 2 of 5             xp1:O_CLX               x
    x    x                            xp2:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x    x                            xp1:O_CLT{X                 x
    x    x                            xp2:O_CLX               x
    x K  xANSI Codabar                xp3:XƬO_CLb Barcode Wx
    x    x                            xp4:}lr                       x
    x    x                            xp5:r                       x
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x L  xLOGMARS Code                xp1:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x    x                            xp1:T{X  A:LT{X             x
    x    x                            x           B:1 Mod 10             x
    x    x                            x           C:2 Mod 10             x
    x M  xMSI Code                    x           D:1 Mod 10 and 1 Mod 11x
    x    x                            xp2:O_CLX               x
    x    x                            xp3:XƬO_CLb Barcode Wx
    x    x                            xp4:XƬO_CLT{X         x
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x S  xUPC/EAN Extensions          xp1:O_CLX               x
    x    x                            xp2:XƬO_CLb Barcode Wx
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x    x                            xp1:O_CLX               x
    x U  xUPC-A Code                  xp2:XƬO_CLb Barcode Wx
    x    x                            xp3:O_CLT{X                 x
    uwwqwwwwwwwwwwwwwwqwwwwwwwwwwwwwwwwwt
    x Z  xPOSTENET Code               xp1:O_CLX               x
    x    x                            xp2:XƬO_CLb Barcode Wx
    |wwrwwwwwwwwwwwwwwrwwwwwwwwwwwwwwwww}
			Ƶ:p1,p2,p3,p4,p5 ,Y:CL  N:CL
			     pϥΨhiNJ

		int	increase	Wq
		LPCTSTR	data		Ʀr
		char	p1,p2,p3,p4,p5	 Barcode P,PNq

	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Prn_Barcode(650,15,0,2,2,51,'C',0,"1234567",'Y','N','N','N','N');

	:	o Z_Prn_Barcode ƥiHCLX@ӯSw Barcode

*******************************************************************************
	Z_Prn_Text()
===============================================================================
	\:	LX@rM[W\C

	yk:	int Z_Prn_Text(int x,int y,int ori,char font,int height,
			int width,int increase,LPCTSTR data);

	Ѽ:	int	x;		X yСC
		int	y;		Y yСCƵG1 dot = 0.125 mmC
		int	ori;		CLVwA'1'O 0XA'2'O90XB
					'3'O180XA'4'O270X
		char	font;		ܦr    AH:I}r
						    0,PV:uʦr
					I}rjp:
					
					xFontx  H * W x
					
					x A  x  9 *  5x
					uwwqwwwwt
					x B  x 11 *  7x
					uwwqwwwwt
					xC,D x 18 * 10x
					uwwqwwwwt
					x E  x 28 * 15x
					uwwqwwwwt
					x F  x 26 * 13x
					uwwqwwwwt
					x G  x 60 * 40x
					uwwqwwwwt
					x H  x 21 * 13x
					|wwrwwww}
		int	height;		j
		int	width;		j
					font AH hJ Font Size ,̤jȬ 10 
					font 0,PV hI,d:11500
					     Urγ̤jȦUP

		int	increase;	Wq
		LPCTSTR	data;		Ʀr
	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Prn_Text(50,110,0,'A',90,50,0,"A123456"); I}r
			or
		Z_Prn_Text(50,110,0,'P',27,360,0,"A123456"); uʦr

	:	o Z_Prn_Text ƥiHCLX@rM[W\C

*******************************************************************************
	Z_Prn_Text_Chinese()
===============================================================================
	\:	LX@rAϥΤIx}rɮ (16*15  24*24)C

	yk:	int Z_Prn_Text_Chinese(int x,int y,int fonttype,
			LPCTSTR id_name,LPCTSTR data,int mem);
      
	Ѽ:	int	x;		X yСC(dot)
		int	y;		Y yСC(dot)
		int	fonttype;	x}rܡC
					0 -> 16*15B1 -> 24*24C
		LPCTSTR	id_name;	@ѧOW٦sLAH᪽
					ϥ Z_Load_Graphic() YiN¹ϩIsXӡC
		LPCTSTR	data;		reC
		int	mem		ϧxsm 0 -> RAM	1 -> Flash Memory
        
	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Open_ChineseFont("C:\\ET3");
		Z_Prn_Text_Chinese(100, 100, 0,"A01","aQqeϢѢҢ",0);

	:	o Z_Prn_Text_Chinese ƥiHLX@rAϥΤIx}rɮ
		(16*15  24*24)C
		w Window's Driver for Dr.200 or Dr.300A@Hq driver ]wA
		Lw]LAYdefault printer O Dr.200  Dr.300 A
		{۰ʷjM Windows AO_ Dr.200  Dr.300AA̧ǨϥΡC

*******************************************************************************
	Z_Prn_Text_TrueType()
	Z_Prn_Text_TrueType_W()
===============================================================================
	\:	LX@ True Type Font rC

	yk:	int Z_Prn_Text_TrueType(int x,int y,int FSize,LPCTSTR FType,
			int Fspin,int FWeight,int FItalic,int FUnline,
			int FStrikeOut,LPCTSTR id_name,LPCTSTR data,int mem);
		int Z_Prn_Text_TrueType_W(int x,int y,int FHeight,int FWidth,
			LPCTSTR FType,int Fspin,int FWeight,int FItalic,int FUnline,
			int FStrikeOut,LPCTSTR id_name,LPCTSTR data,int mem);
									      
	Ѽ:	int	x;		X yСC
		int	y;		Y yСCƵG1 dot = 0.125 mmC
		int	FSize;		TrueType font sizeA쬰I(dot)C
					FSize = (dpi * point) / 72.
		int	FHeight;	rסA쬰I(dot)C
					FHeight = (dpi * point) / 72.
		int	FWidth;		reסA쬰I(dot)C
					FWidth = (dpi * point) / 72.
		LPCTSTR	FType;		TrueType font rW١C
		int	Fspin;		TrueType font rC
					1 -> 0, 2 -> 90, 3 -> 180, 4 -> 270
		int	FWeight;	TrueType font rʲӡC
					0 and NULL and 400 -> 400 зǡB
					100 -> D`ӡB200 -> ӡB
					300 ->     B500 -> B
					600 -> b  B700 ->   B
					800 -> S  B900 -> C
		int	FItalic;	TrueType font rC
					0 -> FALSEB1 -> TRUEC
		int	FUnline;	TrueType font r[uC
					0 -> FALSEB1 -> TRUEC
		int	FStrikeOut;	TrueType font r[RuC
					0 -> FALSEB1 -> TRUEC
		LPCTSTR	id_name;	@ѧOW٦sLAH᪽
					ϥ Z_Load_Graphic() YiN¹ϩIsXӡC
		LPCTSTR	data;		reC
		int	mem		ϧxsm 0 -> RAM	1 -> Flash Memory
        
	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Prn_Text_TrueType(30,35,40,"з",4,400,0,0,0,"AA","nK",0);
		Z_Prn_Text_TrueType_W(30,35,40,30,"з",4,400,0,0,0,"AA","nK",0);

	:	o Z_Prn_Text_TrueType ƥiHLX@ True Type Font rA
		w Window's Driver for Dr.200 or Dr.300A@Hq driver ]wA
		Lw]LAYdefault printer O Dr.200  Dr.300 A
		{۰ʷjM Windows AO_ Dr.200  Dr.300AA̧ǨϥΡC

*******************************************************************************
	Z_Clear_Memory()
===============================================================================
	\:	M Printer  RAM  Flash Memory ơC

	yk:	void Z_Clear_Memory(void);

	d:	Z_Clear_Memory();

	:	o Z_Clear_Memory ƲM Printer  RAM  Flash Memory ϧ
		BnrΡC]ϧΡBrη|@ֿnb memory y overflowA`
		ɨƶb Print_Out() eeXCӷ memory ROAPrinter N
		|ReJϧΩMrΡAקKoͤRAb
		Z_Print_Out() eeXC

******************************************************************************
	Z_Set_Backfeed()
===============================================================================
	\:	]wҦ^ZC

	yk:	void Z_Set_Backfeed(int nPixel);

	Ѽ:	int	nPixel;		]wҦ^ZAdG0999C
					 : dot

	d:	Z_Set_Backfeed(204);

	:	o Z_Set_Backfeed ƥiHϦLCLAhR@pqү

******************************************************************************
	Z_Set_Darkness()
===============================================================================
	\:	]wPYCLסC

	yk:	int Z_Set_Darkness(int darkness);

	Ѽ:	int	darkness;	]wPYCLסAdG-3030C
					printer w0

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Darkness(12);

	:	o Z_Set_Darkness Ʊv@HAQonLX~AA
		Ҽ{@Ǧ]A paper mediaBribbon types(wax,semi-resin M
		resin)Mimage pattern itselfC

*******************************************************************************
	Z_Set_DebugDialog()
===============================================================================
	\:	]wҡC

	yk:	int Z_Set_DebugDialog(int nEnable);

	Ѽ:	int	nEnable;	# 1 -> ҭP
					  0 -> 

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_DebugDialog(1);

	:	o Z_Set_DebugDialog ơA]wҡAF|^ǿ~XA]|q
		XĵܰTܮءC

*******************************************************************************
	Z_Set_Label()
===============================================================================
	\:	]wsȱi

	yk:	int Z_Set_Label(int Length);

	Ѽ:	int	Length;		sȱiCL 1 dot = 0.125 mm

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Label(300);

	:	o Z_Set_Label Ƴ]wsҪ

*******************************************************************************
	Z_Set_Mode()
===============================================================================
	\:	Ұ Cutter  Peel

	yk:	int Z_Set_Mode(char mode);

	Ѽ:	char	mode;		T:Tear Off
					P:Peel Off
					C:Cutter

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Mode('C');

	:	o Z_Set_Mode Ƭntm

*******************************************************************************
	Z_Set_Origin()
===============================================================================
	\:	]w Y yж}lCLm

	yk:	int Z_Set_Origin(int y);

	Ѽ:	int	y;	Y y?lCLm
				y > 0.(1 dot = 0.125 mm)

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Origin(10);

	:	o Z_Set_Origin Ʀb]w Y y?lCLm

*******************************************************************************
	Z_Set_Paper()
===============================================================================
	\:	]wȱisΤsȱi

	yk:	int Z_Set_Paper(char p);

	Ѽ:	char	p;	N:sȱi
				Y:sȱi

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Paper('Y');

	:	o Z_Set_Paper Ʀb]wȱisΤsȱi

*******************************************************************************
	Z_Set_Prncomport()
===============================================================================
	\:	]w Serial PortC

	yk:	int Z_Set_Prncomport(int baud,int parity,int data,int stop);

	Ѽ:	int	baud;		jvApUG
                                        
                                        x baud x   speed    x
                                        
                                        x38400 x 38,400 baudx
                                        uwwwqwwwwwwt
                                        x19200 x 19,200 baudx
                                        uwwwqwwwwwwt
                                        x 9600 x  9,600 baudx
                                        uwwwqwwwwwwt
                                        x 4800 x  4,800 baudx
                                        uwwwqwwwwwwt
                                        x 2400 x  2,400 baudx
                                        |wwwrwwwwww}
		int	parity;		ParityC0:none parity
						1:even parity
						2:odd parity
		int	data;		Data bit numberA7  8C
		int	stop;		Stop bit numberA1  2C

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	int  baud,data,stop;
		char parity;
		parity='N';baud=96;data=8;stop=1;
		Z_Set_Prncomport(baud,parity,data,stop);

	:	o Z_Set_Prncomport Ƴ]w Serial PortA printer PDۦP
		CLPDۦP_h|oͤiwƱC

*******************************************************************************
	Z_Set_Prncomport_PC()
===============================================================================
	\:	]w PC ǦCC

	yk:	int Z_Set_Prncomport_PC(int nBaudRate, int nByteSize, int nParity,
				int nStopBits, int nDsr, int nCts, int nXonXoff);

	Ѽ:	int	nBaudRate;	jvApUG
					1 -> 110     9 -> 19200 
					2 -> 300    10 -> 38400 
					3 -> 600    11 -> 56000 
					4 -> 1200   12 -> 57600 
					5 -> 2400   13 -> 115200 
					6 -> 4800   14 -> 128000 
					7 -> 9600   15 -> 256000 
					8 -> 14400   0 -> 9600

		int	nByteSize;	Data bit number:
					0 -> 7-bit data
					7 -> 7-bit data
					8 -> 8-bit data

		int	nParity;	ParityApUG
					0 -> none parity
					1 -> even parity
					2 -> odd  parity
		int	nStopBits;	Stop bit number:
					0 -> 1 stop bit
					1 -> 1 stop bit
					2 -> 2 stop bits
		int	nDsr;		Setup hardware flow control
					1 -> DTR CONTROL HANDSHAKE;
					0 -> DTR CONTROL ENABLE;

		int	nCts;		Setup hardware flow control
					1 -> RTS CONTROL HANDSHAKE;
					0 -> RTS CONTROL ENABLE;

		int	nXonXoff;	Setup software flow control
					0 -> Enable;
					1 -> Disable;
	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Prncomport_PC(0, 0, 0, 0, 1, 1, 1);

	:	o Z_Set_Prncomport_PC Ʒ|]w PC ǦC]wȡAӧ PC ۦP
		LǦC]wȡApGPhLkPLsCƥb
		Z_Print_Out eC

*******************************************************************************
	Z_Set_Reset()
===============================================================================
	\:	^_ut]w

	yk:	void Z_Set_Reset();

	d:	Z_Set_Reset();

	:	o Z_Set_Reset ƨϥΫ, printer |^_utw]

*******************************************************************************
	Z_Set_Speed()
===============================================================================
	\:	]w printer CLɪt

	yk:	int Z_Set_Speed(int s);

	Ѽ:	int	s;	1 ~ 6

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Speed(3);

	:	o Z_Set_Speed Ʀb]wCLɪt

*******************************************************************************
	Z_Set_TPH()
===============================================================================
	\:	]w printer LҦ

	yk:	int Z_Set_TPH(char m);

	Ѽ:	char	m;	T: 
				D: P

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_TPH('T');

	:	o Z_Set_TPH Ƭntm

*******************************************************************************
	Z_Set_Unit()
===============================================================================
	\:	]w׶q쬰^TΤةι

	yk:	int Z_Set_Unit(char m);

	Ѽ:	char	m;	D: dots
				I: inches
				M: milimeters

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Unit('D');

	:	o Z_Set_Unit ƥi׶q쬰^TΤةι

*******************************************************************************
	Z_Set_Gap()
===============================================================================
	\:	]w Gap 

	yk:	int Z_Set_Gap(int nPattern, int gapLen);

	Ѽ:	int	nPattern;	0 ~ 65535
		int	gapLen;		5 ~ 65535.: mm

	Ǧ^: 0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Set_Gap(30,20);

	:	o Z_Set_Gap ƥi]wȱi Gap , Gap > 5 mm 
		~ϥΦ,Bb Z_Set_Label() e
*******************************************************************************
	Z_Set_ProcessDlg()
===============================================================================
      \G  }ҩi׹ܮءC

      ykG  int Z_Set_ProcessDlg(int nShow);

      ѼơG  int   nShow;		0:i׹ܮءC
					1:}Ҷi׹ܮ

    Ǧ^ȡG  0    -> OK.
              Reference ZW-Error.txt file.

      dҡG  Z_Set_ProcessDlg(1);

    @G  o Z_Set_ProcessDlg ƥi}i׹ܮءC

*******************************************************************************
	Z_Bar2d_QRCode
===============================================================================
	\G	2D Barcod CLC
	
	ykG	int Z_Bar2d_QRCode(int x,int y,int nModel,int nMagni,
			int nErr_Cor,int nInput,LPCTSTR data,int increase);

	ѼơG	int x		:Xy
		int y		:Yy
		int nModel	:QR code
		int nMagni	:Magnification Factor
				 1 --> on 150 dpi printers
				 2 --> on 200 dpi printers
				 3 --> on 300 dpi printers
				 4 --> through 10
		int nErr_Cor	:~ե
				 1 --> Ultra Hight Reliability
				 2 --> Hight Reliability
				 3 --> Standard
				 4 --> Hight density
		int nInput	: 1 --> Automatic
				  2 --> Manual
		LPCSTSTR data	:X
		int increase	:Wq

	Ǧ^ȡG	0    -> OK.
			Reference ZW-Error.txt file.

	dҡG	int Z_Bar2d_QRCode(20,20,2,2,3,1,"QR Code",0);

	G  o Z_Bar2d_QRCode ƥiCL 2D Barcod QR CodeC

*******************************************************************************
	Z_Set_PrintWidth
===============================================================================
	\G	]wCLdC
	
	ykG	int Z_Set_PrintWidth(int nDotWidth);

	ѼơG	int nDotWidth	:̤jCLd

	Ǧ^ȡG	0    -> OK.
			Reference ZW-Error.txt file.

	dҡG	int Z_Set_PrintWidth(200);

	G  o Z_Set_PrintWidth ƥi]wCLdC

*******************************************************************************
	Z_Print_OutQuality()
===============================================================================
	\:	CLҦơC

	yk:	int Z_Print_OutQuality(int nTotal, int copies, int sets, int nPause);

	Ѽ:	int	nTotal;		CL`
		int	sets;		nCLX
		int	copies;		ƦCL
		int	nPause;		O_nCcopiesiƳnȰ 1 --> Yes, 0 --> No

	Ǧ^:	0 -> OK.
		Reference ZW-Error.txt file.

	d:	Z_Print_OutQuality(1,1,1,1);

	:	o Z_Print_OutQuality Ʒ|eҦƨ PrinterAoӨƶbҦƤ
		AZ_ClosePrn() eC
*******************************************************************************